<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>学习表格</title>
    <style>
        table{
            width: 400px;
            margin: 50px auto;
            border-collapse: collapse
        }
        thead{
            background-color: #FFFFCC;
        }
        th,td{
            border: 1px solid #666;
        }
    </style>
</head>
<body>
    <table>
        <captiao>我的表格</captiao>
        <!--表头-->
        <thead>
        <tr>
            <th>姓名</th>
            <th>性别</th>
            <th>手机</th>
            <th>爱好</th>
        </tr>
        </thead>
        <!--表格主体-->
        <tbody>

        <tr>
            <td rowspan="2">李靖宇</td><!--行合并,合并几行就写几-->
            <td>男</td>
            <td>7618787</td>
            <td>足球</td>

        </tr>

        <tr>

            <td>男</td>
            <td>38949475</td>
            <td>打游戏</td>
        </tr>
        <tr>
            <td>王龙麒</td>
            <td>男</td>
            <td colspan="2">3457275</td><!--列合并colspan-->

        </tr>
        <tr>
            <td>武林昌</td>
            <td>男</td>
            <td>334775</td>
            <td>骑车</td>
        </tr>
        </tbody>
        <!--表尾 -->
        <tfoot>

        </tfoot>





    </table>






</body>
</html>